package com.tanhua.server.controller;

import com.tanhua.domain.vo.ChuanyinVo;
import com.tanhua.server.service.PeachblossomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/peachblossom")
public class PeachblossomController {
    @Autowired
    private PeachblossomService peachblossomService;
    @RequestMapping(method = RequestMethod.GET)
    public ResponseEntity findPageCommentById(){
        ChuanyinVo chuanyinVo = new ChuanyinVo();
        chuanyinVo=peachblossomService.receiveVoice();
        return ResponseEntity.ok(chuanyinVo);
    }
}
